package com.four.service;

import com.four.entity.Admin;
import com.four.vo.AdminVo;
import com.four.vo.Result;
import com.four.vo.UserVo;

/**
 * ClassName:AdminService
 * Description:
 * date:2022/10/13 19:32
 *
 * @since JDK 1.8
 */
public interface AdminService {
    //登录
    Result findByAccountAndPass(String account, String password);
    //分配角色
    Result qr(Integer adminId, Integer[] roleIds);
    //查询用户信息
    Result findByCondition(Integer currentPage, Integer pageSize);

    /**
     * 根据登录用户id查询用户个人信息
     */
    Result selectAdminMessageByid();

    Result update(Admin admin);

    Result addAdmin(Admin admin);

    Result updatePassword(AdminVo adminVo);

    Result delete(Integer id);
}
